﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.DataAnnotations.Schema;

namespace Echegoyen.Models
{
    [Table("Temas")]
    public class Tema
    {

        public Tema() { 
        }

        public Tema(int id, string nombre) {

            this.TemaId = id;
            this.Nombre = nombre;
            Materiales = new List<Material>();

        }

        public int TemaId { get; set; }

        public string Nombre { get; set; }

        public ICollection<int> MaterialesId { get; set; }
        public virtual ICollection<Material> Materiales { get; set; }




    }
}
